<?php


$router->add('/video', array(
    'module' => 'frontend_video',
    'controller' => 'index',
    'action' => 'index',
));
/*
 * DETAIL
 */
$router->add('/video/detail', array(
    'module' => 'frontend_video',
    'controller' => 'detail',
    'action' => 'index',
));

$router->add('/video/detail/:action', array(
    'module' => 'frontend_video',
    'controller' => 'detail',
    'action' => 1,
));
$router->add('/video/detail/:int', array(
    'module' => 'frontend_video',
    'controller' => 'detail',
    'action'  => 'index',
    'id' => 1
));

$router->add('/video/{slug}', array(
    'module' => 'frontend_video',
    'controller' => 'detail',
    'action' => 'watchFilm',
));


$router->add('/phim/{slug}', array(
    'module' => 'frontend_video',
    'controller' => 'detail',
    'action'  => 'film',
));


/*
 * CATEGORY
 */
$router->add('/video/category', array(
    'module' => 'frontend_video',
    'controller' => 'category',
    'action' => 'index',
));

$router->add('/the-loai/{slug}', array(
    'module' => 'frontend_video',
    'controller' => 'category',
    'action' => 'category',
));


/*
$router->add('/video/category/:action', array(
    'module' => 'frontend_video',
    'controller' => 'category',
    'action' => 1,
));
/*$router->add('/video/category/:int', array(
    'module' => 'frontend_video',
    'controller' => 'category',
    'action'  => 'index',
    'id' => 1
)); */
/*
 * SEARCH
 */
$router->add('/tim-kiem', array(
    'module' => 'frontend_video',
    'controller' => 'search',
    'action' => 'search',
));

$router->add('/video/search/:action', array(
    'module' => 'frontend_video',
    'controller' => 'search',
    'action' => 1,
));

$router->add('/video/search/:int', array(
    'module' => 'frontend_video',
    'controller' => 'search',
    'action'  => 'index',
    'id'  => 1
));
/*
$router->add(
    "/video/search/:params",
    array(
        "module"     => 'frontend_video',
        "controller" => 'search',
        "action"     => 'index',
        "params"     => 1,
    )
);*/

